appName="mediaroom-admin"
port="10037"
word=""
eurekaHost="$1"
mysqlHost="$2"
redisHost="$3"
esHost="$4"
trackerHost="$5"
kafkaPathList="$6"
echo "开始进行重启进程操作-------------------------------------------------"
word=`netstat -nlp | grep :$port | awk '{print $7}' | awk -F"/" '{ print $1 }'`
echo "$word"
if [ -z "$word" ]; then
    echo "当前程序不在运行中，直接进行启动该操作-------------------------------------"
else
    echo "开始杀死旧进程-----------------------------------------------------------"
    kill -9 $word
fi
BUILD_ID=mediaroomAdmin
nohup java -Xms1024m -Xmx1024m -XX:PermSize200m -XX:MaxPermSize200m -jar $appName.jar --info.eureka-host=$eurekaHost >/dev/null 2>&1 &

